/*
 * @Author: 许旺玉
 * @Description: 全局组件输出
 * @Date: 2020-06-28 12:27:55
 * @LastEditTime: 2020-07-03 16:31:09
 * @LastEditors: Please set LastEditors
 */
import tabBar from "@/components/tabBar"
let myPlugins = {
}
myPlugins.install = (Vue) => {
    Vue.component("tabBar", tabBar)
    
    Vue.prototype.$eventBus = new Vue()
    
    Vue.filter("rmb",(result)=>{ //在价钱前面加$
        return "$"+result
    })

    Vue.filter("toFixed", (result) => { //过滤数字的补零
        return result.toFixed(2)
    })
}

export default myPlugins